package com.zhicheng.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCart {

    private Long id;//主键ID
    private Long userId;//用户id
    private Long goodId;//商品id
    private String name;//商品名称
    private String desc;//商品描述
    private BigDecimal price;//商品价格
    private String imgUrl;//商品图片
    private Boolean selected;//是否已选中
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
}
